﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sinacor.Servico.Bovespa.Movimento.Service.ServiceImplementation.Translator.DataContractToBusinessEntity
{
    public class ConsultaAssessor
    {
        public BusinessEntity.Parameter.FiltroAgente ToFiltroAgente(DataContract.Request.FiltroAgenteRequest from)
        {
            BusinessEntity.Parameter.FiltroAgente to = null;

            if(from!=null)
            {
                to = new BusinessEntity.Parameter.FiltroAgente();

                to.CodigoAssessor = from.CodigoAssessor;
            }

            return to;
        }

        public BusinessEntity.Parameter.FiltroConsultaAssessor ToFiltroConsultaAssessor(DataContract.Request.FiltroConsultaAssessorRequest from)
        {
            BusinessEntity.Parameter.FiltroConsultaAssessor to = null;

            if (from != null)
            {
                to = new BusinessEntity.Parameter.FiltroConsultaAssessor();

                to.CodigoAgente = from.CodigoAgente;
                to.CodigoAssessor = from.CodigoAssessor;
                to.CodigoCorrespondente = from.CodigoCorrespondente;
            }

            return to;
        }
    }
}
